/*
 * @Description: test
 * @Author: rendc
 * @Date: 2025-10-27 11:42:05
 * @LastEditors: rendc
 * @LastEditTime: 2025-10-27 11:51:41
 */
// 创建正则表达式
// 1.字面量
var reg = /1111/ig;
// 字符串 
var s = "1111HelLo,world，hellohello";
// 开始匹配
// console.log('🤡 CC - reg.lastIndex:', reg.lastIndex);
reg.lastIndex = 5;
var result = reg.test(s);
console.log('🤡 CC - reg.lastIndex:', reg.lastIndex);
console.log('🤡 CC - result:', result);

// Array.isArray();